<?php
    include('./conn.php');

  // $idList = $_REQUEST['idlist1'];
   $idList = $_GET['idlist1'];
       // echo $idList;
    $sql = "select * from wmsjindex where sid in ($idList)";

    $res = $conn->query($sql);

    $arr = array();

  /*   while($row = $res->fetch_assoc()){
        array_push($arr,$row);
    }
 */
   for($i=0;$i<$res->num_rows;$i++){
    $arr[$i] = $res->fetch_assoc();
    }
     $json = json_encode($arr);

  echo $json;

 
?>